// i.d(t, { _: () => a, Q: () => l })
import userEnum from "../enum/user.enum"
import modelAccessEnum from "../enum/modelAccess.enum"
function s(e: string, t: number) {
  return (function (e, t) {
    return ((e % t) + t) % t
  })(
    (function (e) {
      let t: number,
        i = 0
      for (let n = 0; n < e.length; n++) (t = e.charCodeAt(n)), (i = (i << 5) - i + t), (i |= 0)
      return i
    })(e),
    t
  )
}
const colorList = [
  "#d44441",
  "#f44336",
  "#e91e63",
  "#f78da7",
  "#9c4b92",
  "#673ab7",
  "#5c7fff",
  "#03a9f4",
  "#417505",
  "#00bcd4",
  "#51a868",
  "#37d67a",
  "#cddc39",
  "#fbcd00",
  "#ffac17",
  "#ff6900",
  "#abb8c3",
  "#607d8b"
]
export function userColor(e: string) {
  const t = colorList.length
  return colorList[s(e || "", t)]
}
export function getUserDisplay(e) {
  return {
    email: e,
    id: "",
    firstName: "",
    lastName: "",
    name: "Unknown",
    initials: "?",
    color: userColor(e),
    userStatus: userEnum.UNKNOWN,
    modelAccess: modelAccessEnum
  }
}
